package com.rentong.wx.sys.service.impl;

import com.rentong.wx.cust.dto.TaocanListVo;
import com.rentong.wx.sys.dao.SysServiceSmallTypeDao;
import com.rentong.wx.sys.domain.SysServiceSmallTypeEntity;
import com.rentong.wx.sys.service.SysServiceSmallTypeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysServiceSmallTypeServiceImpl implements SysServiceSmallTypeService {

    @Resource
    private SysServiceSmallTypeDao sysServiceSmallTypeDao;


    @Transactional(rollbackFor = Exception.class)
    @Override
    public List<SysServiceSmallTypeEntity> getTaocanTitle(SysServiceSmallTypeEntity sysServiceSmallTypeEntity){
        return sysServiceSmallTypeDao.getTaocanTitle(sysServiceSmallTypeEntity);
    }

    @Override
    public List<TaocanListVo> getTaocanList(Long smallTypeId) {
        return sysServiceSmallTypeDao.getTaocanList(smallTypeId);
    }

}